package com.ziyear.domain;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 功能描述 : 订单实体
 *
 * @author Ziyear
 */
public class Prep {
    private Integer prepId; // 序号
    private Integer trainId; // 车次id
    private Integer pmemberId; // 会员信息ID
    private String startStation;// 起始站
    private String endStation; // 终点站
    private String trainNumber; // 火车车次
    private String startTime; // 开车时间
    private String endTime; // 到站时间
    private BigDecimal price; // 车票价格
    private boolean way; // 付款情况
    private Timestamp booktime; // 订票时间
    private Integer trainSeatId;//座位id
    private String seatCode;//座位号码
    private boolean waiting; // 是否候补
    private String seatType; // 座位类型

    public Prep(Integer prepId, Integer trainId, Integer pmemberId, String startStation, String endStation, String trainNumber, String startTime, String endTime, BigDecimal price, boolean way, Timestamp booktime, Integer trainSeatId, String seatCode, boolean waiting, String waitingSeatType) {
        this.prepId = prepId;
        this.trainId = trainId;
        this.pmemberId = pmemberId;
        this.startStation = startStation;
        this.endStation = endStation;
        this.trainNumber = trainNumber;
        this.startTime = startTime;
        this.endTime = endTime;
        this.price = price;
        this.way = way;
        this.booktime = booktime;
        this.trainSeatId = trainSeatId;
        this.seatCode = seatCode;
        this.waiting = waiting;
        this.seatType = waitingSeatType;
    }

    public Prep() {
    }

    public Integer getPrepId() {
        return prepId;
    }

    public void setPrepId(Integer prepId) {
        this.prepId = prepId;
    }

    public Integer getTrainId() {
        return trainId;
    }

    public void setTrainId(Integer trainId) {
        this.trainId = trainId;
    }

    public Integer getPmemberId() {
        return pmemberId;
    }

    public Integer getTrainSeatId() {
        return trainSeatId;
    }

    public void setTrainSeatId(Integer trainSeatId) {
        this.trainSeatId = trainSeatId;
    }

    public String getSeatCode() {
        return seatCode;
    }

    public void setSeatCode(String seatCode) {
        this.seatCode = seatCode;
    }

    public void setPmemberId(Integer pmemberId) {
        this.pmemberId = pmemberId;
    }

    public String getStartStation() {
        return startStation;
    }

    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    public String getEndStation() {
        return endStation;
    }

    public void setEndStation(String endStation) {
        this.endStation = endStation;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public boolean isWay() {
        return way;
    }

    public void setWay(boolean way) {
        this.way = way;
    }

    public boolean isWaiting() {
        return waiting;
    }

    public void setWaiting(boolean waiting) {
        this.waiting = waiting;
    }

    public String getSeatType() {
        return seatType;
    }

    public void setSeatType(String seatType) {
        this.seatType = seatType;
    }

    public Timestamp getBooktime() {
        return booktime;
    }

    public void setBooktime(Timestamp booktime) {
        this.booktime = booktime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Prep{");
        sb.append("prepId=").append(prepId);
        sb.append(", trainId=").append(trainId);
        sb.append(", trainSeatId=").append(trainSeatId);
        sb.append(", seatCode='").append(seatCode).append('\'');
        sb.append(", pmemberId=").append(pmemberId);
        sb.append(", startStation='").append(startStation).append('\'');
        sb.append(", endStation='").append(endStation).append('\'');
        sb.append(", trainNumber='").append(trainNumber).append('\'');
        sb.append(", startTime='").append(startTime).append('\'');
        sb.append(", endTime='").append(endTime).append('\'');
        sb.append(", price=").append(price);
        sb.append(", way=").append(way);
        sb.append(", waiting=").append(waiting);
        sb.append(", waitingSeatType='").append(seatType).append('\'');
        sb.append(", booktime=").append(booktime);
        sb.append('}');
        return sb.toString();
    }
}
